package Models;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

public class PurchaseOrderView {
    private final SimpleDateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy", Locale.US);
    
    private int poID; //PurchaseOrder.POID
    private int poState; //PurchaseOrder.POState
    private Date poDate; //PurchaseOrder.PODate
    private boolean exported; // SalesOrder.exported
    
	public int getPoID() {
		return poID;
	}
	public void setPoID(int poID) {
		this.poID = poID;
	}
	public int getPoState() {
		return poState;
	}
	public void setPoState(int poState) {
		this.poState = poState;
	}
	public Date getPoDate() {
		return poDate;
	}
	public void setPoDate(Date poDate) {
		this.poDate = poDate;
	}
	public boolean isExported() {
		return exported;
	}
	public void setExported(boolean exported) {
		this.exported = exported;
	}

    public String getDisplayString(){
        return Integer.toString(poID) + " - " + dateFormat.format(poDate);
    }
}
